//
//  CZLoginView.m
//  nsj_iOS
//
//  Created by apple on 2016/12/26.
//  Copyright © 2016年 GCZ. All rights reserved.
//

#import "CZLoginView.h"

@implementation CZLoginView
- (void)awakeFromNib {
    [super awakeFromNib];
    self.passWordLoginBtn.layer.borderColor = self.loginBtn.backgroundColor.CGColor;
    self.passWordLoginBtn.layer.borderWidth = 1;
    
    // 验证内容
    self.phoneNumberTextField.layer.borderColor = [UIColor redColor].CGColor;
    self.phoneNumberTextField.borderStyle = UITextBorderStyleNone;
    self.verificationCodeTextField.borderStyle = UITextBorderStyleNone;
    
    
    // QQ登录
    [self.QQLogin setImage:[UIImage imageNamed:@"icon_qq_white"] forState:(UIControlStateNormal)];
    self.QQLogin.imageView.contentMode = UIViewContentModeScaleAspectFit;
    [self.QQLogin setImageEdgeInsets:UIEdgeInsetsMake(10, 8, 0, 5)];
    [self.QQLogin setTitleEdgeInsets:UIEdgeInsetsMake(70, -47, 0, 0)];
    
    // 微信登录
    [self.WXLogin setImage:[UIImage imageNamed:@"icon_wechat_white"] forState:(UIControlStateNormal)];
    self.WXLogin.imageView.contentMode = UIViewContentModeScaleAspectFit;
    [self.WXLogin setImageEdgeInsets:UIEdgeInsetsMake(10, 2, 0, 0)];
    [self.WXLogin setTitleEdgeInsets:UIEdgeInsetsMake(70, -72, 0, 0)];
    
}
- (IBAction)agreeProtocolAction:(UIButton *)sender {
    sender.selected = !sender.selected;
}


/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
